package vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@NamedQueries({ @NamedQuery(name = "Element.findAll", query = "select e from Element e"),
		@NamedQuery(name = "Element.findByTemplateIdName", query = "select e from Element e where e.templateId=? and e.name=?"),
		@NamedQuery(name = "Element.findByTemplateId", query = "select e from Element e where e.templateId=?") })
@Table(name = "element")
public class Element extends BaseEntity {

	@Column(name = "name")
	private String name;
	@Column(name = "define")
	private String define;
	@Column(name = "format")
	private String format;
	@Column(name = "regex")
	private String regex;
	@Column(name = "type")
	private String type;
	@Column(name = "template_id")
	private long templateId;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDefine() {
		return define;
	}

	public void setDefine(String define) {
		this.define = define;
	}

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	public String getRegex() {
		return regex;
	}

	public void setRegex(String regex) {
		this.regex = regex;
	}


	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public long getTemplateId() {
		return templateId;
	}

	public void setTemplateId(long templateId) {
		this.templateId = templateId;
	}

}
